<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>打印面单</title>
    <link href="../../rs/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="../../rs/css/font-awesome.min93e3.css?v=4.4.0" rel="stylesheet">
    <link href="../../rs/plugins/bootstrap_tab/css/bootstrap-table.css" rel="stylesheet">
    <link href="../../rs/css/animate.min.css" rel="stylesheet">
    <link href="../../rs/css/style.min862f.css?v=4.1.0" rel="stylesheet">
    <link href="../../rs/plugins/datapicker/datepicker3.css" rel="stylesheet">
    <link href="../../rs/plugins/bootstrap-editable/css/bootstrap-editable.css" rel="stylesheet">

    <style>
        .input-daterange{width: 100%;}
        .m-b-xs{
            padding-right: 0px;
            padding-left: 0px;
        }
        .editable-click, a.editable-click, a.editable-click:hover {
            border-bottom: 0px;
        }
        .fixed-table-pagination .page-list{
            display: none;
        }
    </style>

</head>
<body class="gray-bg">
  <table width="100%" border="1" cellspacing="0">
    <tr>
        <th>班级</th>
        <th>日期</th>
        <th>标题</th>
    </tr>
    <tr>
        <td>一班</td>
        <td>2012-5-10</td>
        <td>标题1</td>
    </tr>
    <tr>
        <td>二班</td>
        <td>2012-5-20</td>
        <td>标题2</td>
    </tr>
</table>
<div class="wrapper wrapper-content animated fadeInRight">
    <!-- Panel Other -->
    <div class="ibox float-e-margins">
        <div class="ibox-content form-inline">

            <div class="col-sm-6 m-b-xs">
            ccccc

            </div>

            <div class="col-sm-4 m-b-xs">aaaa</div>

            <div class="col-sm-1 m-b-xs">bbbb
                <!-- <div class="input-group" id="key">
                    <input style="height:34px;" type="text" name="gjc" placeholder="请输入关键词" class="input-sm form-control">
          					<span class="input-group-btn">
          						<button id="search" style="height:34px;" type="button" class="btn btn-sm"> 查找
                                  </button>
          					</span>
                </div> -->

            </div>

            <table id="table"></table>
            <!-- End Example Card View -->
        </div>
    </div>
</div>
<!-- End Panel Other -->
<script src="../../rs/js/jquery.min.js"></script>
<script src="../../rs/js/bootstrap.js"></script>
<script src="../../rs/plugins/bootstrap_tab/js/bootstrap-table.min.js"></script>
<script src="../../rs/plugins/bootstrap_tab/js/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script>
<script src="../../rs/plugins/datapicker/bootstrap-datepicker.js"></script>
<script src="../../rs/plugins/bootstrap_tab/js/bootstrap-table-export.js"></script>
<script src="../../rs/plugins/bootstrap_tab/js/tableExport.js"></script>
<script src="../../rs/js/jquery.cookie.js"></script>
<script src="../../rs/js/common_qj.js"></script>
<script src="../../rs/js/store.min.js"></script>  <!-- 打印面单js -->
<script src="../../rs/plugins/layer/layer.min.js"></script>
<script src="../../rs/plugins/bootstrap-editable/js/bootstrap-editable.js"></script>
<script src="../../rs/plugins/bootstrap-editable/js/bootstrap-table-editable.min.js"></script>
<script src="../../rs/js/doT.min.js"></script>
<script src="../../rs/js/api.js"></script>

<script type="text/javascript">
    var $table = $('#table');
    var sign=URLencode($.cookie('sign'));
    $(function(){
      var data=store.get("dy");
      console.log(data);
      $.ajax({
          type: "post",
          url: G_url+'stalo/load/'+data[0].djbh,
          data:'sign='+sign,
          dataType: "json",
          success: function (result){
            $table.bootstrapTable({
                columns: [
                    {
                        field: 'prmc',
                        title: '商品名称'
                    },
                    {
                        field: 'kc',
                        title: '库存数'
                    },
                    {
                        field: 'sl',
                        title: '数量'
                    }
                ],
                data: result.detail,
                detailView: false
            });
          },
          error: function (XMLHttpRequest, textStatus, errorThrown) {
          }
      });


    });

    // 
    // window.onload = function (){
    //
    //   window.print();
    //
    // }

</script>
</body>
</html>
